<% if user_signed_in? %>
  <li>You are <%= link_to(current_user.email, edit_user_registration_path) %></li>
<% else %>
  <li><%= link_to('Register', new_user_registration_path) %></li>
<% end %>